package dao.impl;

import java.sql.SQLException;
import java.util.List;

import module.Logs;

import com.ibatis.sqlmap.client.SqlMapClient;

import dao.ABSBasicDAO;
import domain.vo.queryObject;


public class LogsDAOImpl extends ABSBasicDAO<Logs> {
	
	/**
	 * 构造方法
	 * @param sqlMapClient
	 */
	public LogsDAOImpl(SqlMapClient sqlMapClient) {
		super(sqlMapClient);
	}
		

	/* (non-Javadoc)
	 * @see dao.ABSBasicDAO#insertT(java.lang.String, module.Logs)
	 */
	public void insertT(Logs t) throws SQLException {
		sqlMapClient.insert("Logs.insertLogInfo", t);
		
	}


	@Override
	public List<Logs> getObjectByQueryObject(queryObject queryObject)
			throws SQLException {
		return (List<Logs>)sqlMapClient.queryForList("Logs.getObjectByQueryObject", queryObject);
	}


	@Override
	public int countByQueryObject(queryObject queryObject) throws SQLException {
		return (Integer)sqlMapClient.queryForObject("Logs.countHouseByQueryObject", queryObject);
	}

	

}
